<?php

if($bean = UserManager::GetUser(App::$Current->Page->User))
{
	?><h2><?php text('Ratings to') ?> <?php print App::$Current->Page->User == App::$Current->User ? translate('you' ) : $bean->fullname ?></h2><?php  
	
	// updates
	$ratings = RatingManager::GetRatingsToUser(App::$Current->Page->User);
	foreach ($ratings as $rating)
	{
		printRatingDetails($rating);
	}
}